package cn.tedu.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HttpController {
    @RequestMapping("/hello")
    public String hello(){
        System.out.println("接受到动态请求");
        return "aaa.html";
    }

    @RequestMapping("/dog")
    @ResponseBody
    public String World (){
        System.out.println("接受到动态请求");
        return "Hello SpringMVC";
    }

}
